package org.third.integration.kubernates.cmd;

import java.io.File;
import java.io.InputStream;
import java.io.Reader;

import org.third.integration.kubernates.cmd.imp.bean.KubeInstanceInfo;
import org.third.integration.kubernates.cmd.imp.exp.NotValidK8sYamlException;
import org.third.integration.kubernates.cmd.imp.exp.RequestApiServerException;

public interface KubectlCreate {

	KubeInstanceInfo execute(StringBuffer sb) throws NotValidK8sYamlException, RequestApiServerException;
	
	KubeInstanceInfo execute(File file) throws NotValidK8sYamlException, RequestApiServerException;
	
	KubeInstanceInfo execute(String content) throws NotValidK8sYamlException, RequestApiServerException;
	
	KubeInstanceInfo execute(InputStream inputStream) throws NotValidK8sYamlException, RequestApiServerException;
	
	KubeInstanceInfo execute(Reader reader) throws NotValidK8sYamlException, RequestApiServerException;
	
}
